package main

import (
	"fmt"
	"strings"
)

func main() {

	str := "fanyulongxuegogo" //字符是不能修改的
	bool1 := strings.Contains(str, "fyl")
	fmt.Println(bool1)
	bool2 := strings.Contains(str, "fanyu")
	fmt.Println(bool2)

	containsAny := strings.ContainsAny(str, "zba")
	//将传入的字符串变成char数组只要有一个char出现在目标字符串就返回true
	fmt.Println(containsAny)

	count := strings.Count("aaaaaaaassssssssddddddddffffff", "f")
	fmt.Println(count)
}
